<include file="Public:header"/>
<div class="crumbs">当前位置：<a href="{:U('/',false,false)}">首页</a> > <a href="{:U('/'.$mall['initial'])}">{$mall.name}</a></div>
<include file="Public:slider"/>
<div class="w_mr bord">
    <include file="Mall:mallcon"/>
</div>
<div class="fn-clear"></div>
<!--内容块-->
<div class="cont">
    <include file="Mall:conl"/>
    <!--内容块 r-->
    <div class="conr">
        <if condition="count($place) gt 1">
            <div class="abz">
                <foreach name="place" item="p">
                    <a href="#">{$p.place}</a>
                </foreach>
            </div>
        </if>
        <div class="mlclist box_shadow mt10">
            <ul class="fl" id="fl">
                <li class="lctit">
                    <span class="f9">{:L('_FLOOR_')}</span>
                    <span class="ff9900">{:L('_ACTIVITY_')}</span>
                </li>
                <foreach name="floors" item="floor">
                    <li><a href="javascript:;" data-id="{$floor.id}">{$floor.sain}</a></li>
                </foreach>
            </ul>
            <div class="fn-clear"></div>
            <ul class="flxx" id="flxx">
                <foreach name="floors" item="floor">
                    <li class="ls floor-{$floor.id}">{$floor.sain}&nbsp;&nbsp;{$floor.name}</li>
                    <foreach name="floor['dis']" item="brand">
                        <li class="floor-{$floor.id}">
                            <a href="{:U('/'.$mall['initial'] . '/' . strtolower($floor['sain']) . '/' . strtolower($brand['ename']))}">
                                <span class="f1">{$brand.name}</span>
                                <if condition="$brand['end_time'] egt strtotime(date('Y-m-d'))">
                                    <span class="f2">{$brand.title}</span>
                                    <span class="f3">{$brand.start_time|date="Y.m.d",###}-{$brand.end_time|date="Y.m.d",###}</span>
                                    <else/>
                                    <span class="f2">目前暂时没有活动，敬请期待</span>
                                    <span class="f3"></span>
                                </if>
                            </a>
                        </li>
                    </foreach>
                </foreach>
            </ul>
        </div>
    </div>
    <div class="fn-clear"></div>
</div>
<include file="Public:footer"/>
<script type="text/javascript">
    $(function () {
        var id = 1;
        $("ul#flxx>li").hide();
        $("ul#fl>li>a").eq(0).parent().addClass("on");
        id = $("ul#fl>li>a").eq(0).data('id');
        $(".floor-" + id).show();
        $("ul#fl>li>a").click(function () {
            id = $(this).data('id');
            $("ul#flxx>li").hide();
            $(".floor-" + id).show();
            $("ul#fl>li").removeClass('on');
            $(this).parent().addClass('on');
        });
    });
</script>